package com.system.service.impl;

import com.system.mapper.SysRoleMapper;
import com.system.pojo.SysRole;
import com.system.service.SysRoleService;
import com.system.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yjymm
 * @date 2019-12-17 21:33
 */

@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;


    @Override
    public ResultVo<SysRole> selectAll() {
        ResultVo<SysRole> resultVo = new ResultVo<SysRole>();
        List<SysRole> sysRoles =  sysRoleMapper.selectAll();
        resultVo.setTList(sysRoles);
        resultVo.setSelect(true);
        resultVo.setMessage("查询成功");
        return resultVo;
    }
}
